package com.cn.dream_order_server.controller;


import com.cn.dream_order_server.service.OrderCartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class OrderCartScheduled {

    @Autowired
    private OrderCartService orderCartService;


    @Scheduled(fixedRate = 1000*60*5)
    public void  updateOrderCart(){
        orderCartService.updateOrderCartTable();
    }
}
